# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=minieap
pkgver=0.93
pkgrel=1
pkgdesc="Extensible 802.1x client with Ruijie v3/v4 support"
arch=('loong64' 'x86_64')
url="https://github.com/updateing/minieap"
license=('GPL')
depends=('glibc' 'coreutils')
backup=(etc/minieap.conf)
source=("$pkgname-$pkgver.tar.gz::https://github.com/updateing/minieap/archive/v$pkgver.tar.gz")
sha512sums=('80b4873219933bdfc80c238c55072de555f99677d2a5abcc6d28f558ed76abef1b621460decf994ea2bae664107845f49a5aec1b87d696f8dcd416ce96de6a33')

build() {
  cd minieap-$pkgver
  make PREFIX=/usr BINDIR=/bin
}

package() {
  cd minieap-$pkgver
  make PREFIX=/usr BINDIR=/bin SYSTEMDDIR=/usr/lib/systemd DESTDIR="$pkgdir" install
}
